package com.cch.cooperation.api.feedback.dto;

import com.cch.cooperation.dao.file.dto.FileDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 反馈添加请求参数
 *
 * @author cch
 */
@Data
@ApiModel("添加反馈参数")
public class FeedbackAddDTO {

    @ApiModelProperty(value = "用户id", hidden = true)
    @NotEmpty(message = "用户id不能为空")
    private String userId;

    @ApiModelProperty(value = "反馈内容",required = true)
    @NotEmpty(message = "反馈内容不能为空")
    private String content;

    @ApiModelProperty("反馈文件")
    private List<FileDTO> files;
}
